package com.neusoft.ysu.his.controller;


import com.neusoft.ysu.his.entity.CommonResult;
import com.neusoft.ysu.his.service.IStatuecodeService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2023-09-01
 */
@RestController
@RequestMapping("/statuecode")
@CrossOrigin
public class StatuecodeController {
    @Autowired
    IStatuecodeService service;
    @GetMapping("/q/all")
    public CommonResult findAll(){
        return service.findAll();
    }
}
